# -*- coding:utf-8 -*-

from PIL import Image

# 图片尺寸修改
img = Image.open("C:/Users/Administrator/Desktop/image_s.jpg")
img_resize = img.resize((48, 27), Image.ANTIALIAS)  # Image.ANTIALIAS抗锯齿
img_resize.save("C:/Users/Administrator/Desktop/image_t.jpg")
